﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Main_Item_Student : System.Web.UI.Page
{
    Datautility du = new Datautility();
    string strsql; 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //Bindgrdstudent();
        }
    }
    //protected void Bindgrdstudent()
    //{
    //    List<ImplementIlist> student = new List<ImplementIlist>();
    //    strsql = "select * from student";
    //    SqlConnection con = new SqlConnection();
    //    SqlCommand com = new SqlCommand();
    //    con.ConnectionString ="Data Source=.\\Sqlexpress;Initial Catalog=accounts;user id=sa;password=goal";
    //    com.Connection = con;
    //    con.Open();
    //    com.CommandText = strsql;
    //    SqlDataReader rdr = com.ExecuteReader();
    //    while(rdr.Read())
    //    {
    //        student.Add(new ImplementIlist() { StudentName = rdr["StudentName"].ToString(), StudentAddress = rdr["StudentAddress"].ToString(), StudentContact = rdr["StudentContact"].ToString() });
    //    }
    //    lblmsg.Text = rdr["StudentName"].ToString();

    //    //grdstudent.DataSource = student;
    //    //grdstudent.DataBind();
    //}
    protected void grdstudent_PageIndexChanged(object sender, EventArgs e)
    {

    }
    protected void grdstudent_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        grdstudent.PageIndex = e.NewPageIndex;
        //Bindgrdstudent();
    }
}
